﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Agnes.Core;
using ICSharpCode.Core;
using System.Windows.Input;

namespace Agnes.TaskManager
{
    /// <summary>
    /// 启动插件前执行命令
    /// </summary>
    public class TaskManagerCmd : AbstractCommand 
    {
        public override void Run()
        {
            
            CommandBinding cb = new CommandBinding(NewTaskCmd.Requery, 
                new ExecutedRoutedEventHandler(NewTaskCmd.Instance.Excuted), 
                new CanExecuteRoutedEventHandler(NewTaskCmd.Instance.CanExcute));

            AgnesCommandService.CommandBindings.Add(cb);
        }
    }
}
